package com.ruoyi.produce.base.procedure.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Timestamp;

/**
 * 工序表
 * produce_procedure
 * @author Drj 2021/6/28
 */
public class Procedure extends BaseEntity {
    /**
     * 工序编号
     */
    @NotNull(message = "工序编号不能为空")
    @ApiModelProperty(value = "工序编号", required = true)
    private String procedureId;
    /**
     * 工序名称
     */
    private String procedureName;
    /**
     * 参考单价
     */
    private double unitPrice;
    /**
     * 工序内容
     */
    private String procedureContent;
    /**
     * 所需时间
     */
    private int timeRequired;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp createTime;

    @Override
    public String toString() {
        return "Procedure{" +
                "procedureId='" + procedureId + '\'' +
                ", procedureName='" + procedureName + '\'' +
                ", unitPrice=" + unitPrice +
                ", procedureContent='" + procedureContent + '\'' +
                ", timeRequired=" + timeRequired +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                '}';
    }

    public String getProcedureId() {
        return procedureId;
    }

    public void setProcedureId(String procedureId) {
        this.procedureId = procedureId;
    }

    public String getProcedureName() {
        return procedureName;
    }

    public void setProcedureName(String procedureName) {
        this.procedureName = procedureName;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getProcedureContent() {
        return procedureContent;
    }

    public void setProcedureContent(String procedureContent) {
        this.procedureContent = procedureContent;
    }

    public int getTimeRequired() {
        return timeRequired;
    }

    public void setTimeRequired(int timeRequired) {
        this.timeRequired = timeRequired;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}
